home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / wincap.zip / DIBAPI.H < prev    next >
Text File  |  1991-11-05  |  2KB  |  47 lines

  1. /*
  2.  *  dibapi.h
  3.  *
  4.  *  Copyright (c) 1991 Microsoft Corporation. All rights reserved
  5.  *
  6.  *  Header file for Device-Independent Bitmap (DIB) API.  Provides
  7.  *  function prototypes and constants for the following functions:
  8.  *
  9.  *  PrintWindow()       - Prints all or part of a window
  10.  *  PrintScreen()       - Prints the entire screen
  11.  *  CopyWindowToDIB()   - Copies a window to a DIB
  12.  *  CopyScreenToDIB()   - Copies entire screen to a DIB
  13.  *  CopyWindowToBitmap()- Copies a window to a standard Bitmap
  14.  *  CopyScreenToBitmap()- Copies entire screen to a standard Bitmap
  15.  *  PrintDIB()          - Prints the specified DIB
  16.  *  SaveDIB()           - Saves the specified dib in a file
  17.  *  LoadDIB()           - Loads a DIB from a file
  18.  *  DestroyDIB()        - Deletes DIB when finished using it
  19.  *
  20.  * See the file DIBAPI.TXT for more information about these functions.
  21.  *
  22.  */
  23.  
  24. /* Handle to a DIB */
  25. #define HDIB HANDLE
  26.  
  27. /* Print Area selection */
  28. #define PW_WINDOW        1
  29. #define PW_CLIENT        2
  30.  
  31. /* Print Options selection */
  32. #define PW_BESTFIT       1
  33. #define PW_STRETCHTOPAGE 2
  34. #define PW_SCALE         3
  35.  
  36. /* Function prototypes */
  37. WORD    PrintWindow(HWND, WORD, WORD, WORD, WORD, LPSTR);
  38. WORD    PrintScreen(LPRECT, WORD, WORD, WORD, LPSTR);
  39. HDIB       CopyWindowToDIB(HWND, WORD);
  40. HDIB       CopyScreenToDIB(LPRECT);
  41. HBITMAP    CopyWindowToBitmap(HWND, WORD);
  42. HBITMAP    CopyScreenToBitmap(LPRECT);
  43. WORD    PrintDIB(HDIB, WORD, WORD, WORD, LPSTR);
  44. WORD       SaveDIB(HDIB, LPSTR);
  45. HDIB       LoadDIB(LPSTR);
  46. WORD       DestroyDIB(HDIB);
  47.